package com.sevenwonders.core;

public class Card {
    private int id;
    private String name;
    private CardType type;
    private BaseCard baseCard;

    private int costCoin;
    private Resource[] costResource;
    private String costCard;
    private String[] chain;

    public Card(int id, String name, CardType type, BaseCard baseCard) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.baseCard = baseCard;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public CardType getType() {
        return type;
    }

    public BaseCard getBaseCard() {
        return baseCard;
    }

    void awardBonus(Player player) {
        baseCard.awardBonus(player);
    }

    public int getCostCoin() {
        return costCoin;
    }

    Card setCostCoin(int costCoin) {
        this.costCoin = costCoin;
        return this;
    }

    public Resource[] getCostResource() {
        return costResource;
    }

    Card setCostResource(Resource... costResource) {
        this.costResource = costResource;
        return this;
    }

    public String getCostCard() {
        return costCard;
    }

    Card setCostCard(String costCard) {
        this.costCard = costCard;
        return this;
    }

    public String[] getChain() {
        return chain;
    }

    Card setChain(String... chain) {
        this.chain = chain;
        return this;
    }


}
